package com.xframe.domain.knowledgeBase;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.TableType;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

//com.xframe.domain.knowledgeBase.VRepairDetail
@Data
@Accessors(chain=true)
@XTable(value = "v_repair_detail", label = "维修单知识库视图")
public class VRepairDetail extends BaseModel {
    /**
     * 主键ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "rep_id",primaryKeyFlag = true,desc = "主键ID")
    private Long repId;


    /**
     * 单据来源
     */
    @XColumn(name = "source_type",desc = "单据来源")
    private Integer sourceType;

    /**
     * 单据号
     */
    @XColumn(name = "work_order_code",desc = "单据号")
    private String workOrderCode;

    /**
     * 设备ID
     */
    @XColumn(name = "em_id",desc = "设备ID")
    private Long emId;

    /**
     * 故障现象
     */
    @XColumn(name = "rep_fault_type",desc = "故障现象")
    private Integer repFaultType;

    /**
     * 设备名称
     */
    @XColumn(name = "em_name",desc = "设备名称")
    private String emName;

    /**
     * 是否批准入库
     */
    @XColumn(name = "is_warehouse",desc = "是否批准入库")
    private Integer isWarehouse;

    /**
     * 维修人ID
     */
    @XColumn(name = "mainten_employee_id",desc = "维修人ID")
    private Long maintenEmployeeId;

    /**
     * 所属系统
     */
//    @XColumn(name = "em_system",desc = "所属系统")
//    private String emSystem;

    /**
     * 所属组
     */
//    @XColumn(name = "em_group",desc = "设备组")
//    private String emGroup;

    /**
     * 故障现象
     */
    @XColumn(name = "mtc_fault_type",desc = "故障类型")
    private Integer mtcFaultType;

    /**
     * 故障原因
     */
    @XColumn(name = "mtc_fault_reason",desc = "故障原因")
    private Integer mtcFaultReason;

    /**
     * 维修人姓名
     */
    @XColumn(name = "employee_name",desc = "维修人姓名")
    private String employeeName;

    /**
     * 同类故障
     */
    @XColumn(name = "same_fault_num",desc = "同类故障")
    private Integer sameFaultNum;

    /**
     * 同系统故障
     */
    @XColumn(name = "same_sys_num",desc = "同系统故障")
    private Integer sameSysNum;

    /**
     * 同系统故障
     */
    @XColumn(name = "same_group_num",desc = "同系统故障")
    private Integer sameGroupNum;

    /**
     * 修改时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @XColumn(name = "update_time",desc = "修改时间")
//    private Date updateTime;
}
